package application

import (
	"context"
	"forum/internal/domain"
	"forum/internal/domain/repo"
	repo2 "forum/intr/domain/repo"
)

type RankService interface {
	TopN(ctx context.Context) error
}

type RankArticleServiceImp struct {
	artRepo   repo.ArticleRepository
	interRepo repo2.InteractiveRepository

	biz string
}

func NewRankArticleServiceImp(artRepo repo.ArticleRepository, interRepo repo2.InteractiveRepository) *RankArticleServiceImp {
	return &RankArticleServiceImp{artRepo: artRepo, interRepo: interRepo}
}

func (r *RankArticleServiceImp) TopN(ctx context.Context) error {
	//TODO 排行前N
	r.topN(ctx)
	return nil
}

func (r *RankArticleServiceImp) topN(ctx context.Context) ([]domain.Article, error) {
	//TODO \
	return nil, nil
}
